package main

import (
	_ "uuMall/routers"

	"github.com/beego/beego/v2/client/orm"
	beego "github.com/beego/beego/v2/server/web"
	_ "github.com/go-sql-driver/mysql"
)

func main() {
	beego.Run()
}

func init() {
	//orm.RegisterDriver("mysql", orm.DRMySQL)
	orm.Debug = true
	orm.RegisterDataBase("default", "mysql", "root:password@/uuMall?charset=utf8")
	go beego.SetStaticPath("/js", "static/js")
	go beego.SetStaticPath("/css", "static/css")
	go beego.SetStaticPath("/img", "static/img")

}
